'use strict'

const Controller = require('egg').Controller

class SysRoleController extends Controller {
  async roleList() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysRole.roleList(data)
  }

  async roleAdd() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysRole.roleAdd(data)
  }

  async roleUpdate() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysRole.roleUpdate(data)
  }

  async roleDelete() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysRole.roleDelete(data)
  }

  async roleAddBatch() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysRole.roleAddBatch(data)
  }

  async roleDeleteBatch() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysRole.roleDeleteBatch(data)
  }
}

module.exports = SysRoleController
